package com.campusmarket.model;

import com.campusmarket.common.base.BaseModel;

import java.sql.Timestamp;

public class Commodity extends BaseModel {

    private String comName;

    private Long typeId;

    private String comIntroduce;

    private Float comPrice;

    private Timestamp pubDate;

    private Long userId;

    private boolean isBuy;

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getComIntroduce() {
        return comIntroduce;
    }

    public void setComIntroduce(String comIntroduce) {
        this.comIntroduce = comIntroduce;
    }

    public Float getComPrice() {
        return comPrice;
    }

    public void setComPrice(Float comPrice) {
        this.comPrice = comPrice;
    }

    public Timestamp getPubDate() {
        return pubDate;
    }

    public void setPubDate(Timestamp pubDate) {
        this.pubDate = pubDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public boolean isBuy() {
        return isBuy;
    }

    public void setBuy(boolean buy) {
        isBuy = buy;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "comName='" + comName + '\'' +
                ", typeId=" + typeId +
                ", comIntroduce='" + comIntroduce + '\'' +
                ", comPrice=" + comPrice +
                ", pubDate=" + pubDate +
                ", userId=" + userId +
                ", isBuy=" + isBuy +
                ", id=" + id +
                ", cdate=" + cdate +
                ", mdate=" + mdate +
                '}';
    }
}
